From: Alan Mackenzie Date: Sun, 12 Dec 2010 12:24:56 +0000 (+0000) Subject: (c-forward-type): Before scanning a template arglist, check that the X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~5406 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=f1cd9b2d5ad6dd3bf136f5f88a1b0bdc5af70964;p=emacs.git (c-forward-type): Before scanning a template arglist, check that the current language supports this. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a78c0601c7d..b4d311b6daf 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2010-12-12 Alan Mackenzie + + * progmodes/cc-engine.el (c-forward-type): Before scanning a + template arglist, check that the current language supports this. + 2010-12-11 Glenn Morris * vc/vc-bzr.el (vc-bzr-state-heuristic): Also check that the executable diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index 18010407eda..c9e162c91b9 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el @@ -5846,7 +5846,8 @@ comment at the start of cc-engine.el for more info." ;; `c-record-type-identifiers' is non-nil. ;; ;; This function might do hidden buffer changes. - (when (looking-at "<") + (when (and c-recognize-<>-arglists + (looking-at "<")) (c-forward-<>-arglist t) (c-forward-syntactic-ws))